import React from 'react'
import { connect, mapActions } from '../@react/ReactStore'

const Home = ({push}) => (
  <div>
    首页
    <p>
      <button onClick={() => push('/counter')}>
        Counter页面
      </button>
      <button style={{margin: '0 15px'}} onClick={() => push('/hello')}>
        Hello页面
      </button>
      <button onClick={() => push('/nomach')}>
        未匹配到
      </button>
    </p>
  </div>
)

export default connect(null, mapActions({
  push: 'router/push'
}))(Home)
